package org.datascooter.meta;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

public class MetaPrimaryKey implements Serializable {

	private static final long serialVersionUID = -1031412442811685677L;
	public final String TABLE_CAT;
	public final String TABLE_SCHEM;
	public final String TABLE_NAME;
	public final String COLUMN_NAME;
	public final String PK_NAME;
	public final int KEY_SEQ;

	public MetaPrimaryKey(ResultSet rs) throws SQLException {
		TABLE_CAT = rs.getString("TABLE_CAT");
		TABLE_SCHEM = rs.getString("TABLE_SCHEM");
		TABLE_NAME = rs.getString("TABLE_NAME");
		COLUMN_NAME = rs.getString("COLUMN_NAME");
		PK_NAME = rs.getString("PK_NAME");
		KEY_SEQ = rs.getInt("KEY_SEQ");
	}
}
